package net.zjitc.mapper;

import net.zjitc.pojo.Customer;
import net.zjitc.pojo.User;
import net.zjitc.pojo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author admin
 * @Date 2019/3/12 10:20
 */
public interface UserMapper {
   User findById(int id);
   List<Customer> findCustomerAll();
   /*
   * 登录：用户名和密码
   * */
   Customer findByUsernameAndPassword(@Param(value = "n") String name,
                                      @Param(value = "p") String pass);

  List<Customer> search(@Param(value = "sex") String sex,
                  @Param(value = "name") String name);

  List<Customer> ConSearch(UserVo vo);

  List<User> findAll();
}
